<?php
class Nhanvien extends AppModel {

	var $name = 'Nhanvien';
	var $virtualFields = array('name' => "CONCAT(Nhanvien.manv,'- ',Nhanvien.tennv)");
	var $displayField = 'name';
	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Donvi' => array(
			'className' => 'Donvi',
			'foreignKey' => 'donvi_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Chucdanh' => array(
			'className' => 'Chucdanh',
			'foreignKey' => 'chucdanh_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasMany = array(
		'Chitieunv' => array(
			'className' => 'Chitieunv',
			'foreignKey' => 'nhanvien_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Nvchithi' => array(
			'className' => 'Nvchithi',
			'foreignKey' => 'nhanvien_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Nvngay' => array(
			'className' => 'Nvngay',
			'foreignKey' => 'nhanvien_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Phankenh' => array(
			'className' => 'Phankenh',
			'foreignKey' => 'nhanvien_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Tempnhiemvunv' => array(
			'className' => 'Tempnhiemvunv',
			'foreignKey' => 'nhanvien_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'nhanvien_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
?>